import os, time
from matplotlib import pyplot as plt
import pyautogui as pyautogui

screenshotImg = pyautogui.screenshot()
# im2 = pyautogui.screenshot('my_screenshot.png')
# im = pyautogui.screenshot(region=(0,0, 300, 400))
# plt.imshow(im,'gray')
plt.imshow(screenshotImg, 'gray')
plt.show()
